Repository navigation
refactor(auth): auth checks live in one module, src/auth - #732
Merged
Merged
Conversation
Contributor
Author
Review notesNot blocking, not verified. Each is one reviewer's claim.
Written by an agent. |
…uplink and HTTP requests ask it (#712) Moves the token store and admin secret into src/auth, builds Auth once in main.ts, and points http, daemon, gateway, agent-device and core at it. spec tests: 12 failing -> 0 failing
…onformance of identity fields (#712)
…drop comments pointing at deleted session.ts (#712)
V3RON
added a commit
that referenced
this pull request
Oct 20, 2026
### Status Main's CI fails `src/docs-manuals.test.ts` on `src/daemon/AGENTS.md`: after #732 moved the admin secret and the session resolver into `src/auth`, two rows still name the deleted files, and one prose line names a function that no longer exists. - Drops the `admin-secret.ts` and `session.ts` rows; `src/auth/AGENTS.md` already covers both. - Points the "Credential resolution" line at `resolveHelloRole` in `src/auth`. Docs only. No code, no test change. ## Review Spec review: skipped. Code review: skipped. Claims review: 0 blocking, 0 fixed, 0 notes. Rounds: 1. Tokens: n/a. Assessment: complete. *Written by an agent.*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #712
Status
Implement: done (43/43 green) Review: round 2 passed Hardware: n/a Gate: waiting for the stack
Next: none; merges with the #701 stack
rg 'token-store|admin-secret|daemon/session' src --glob '!src/auth/**'finds no import. Checked by the audit's grep.main.tscallscreateAuthonce (rg -c 'createAuth\(' src/daemon/main.tsprints 1). Checked by the audit.pnpm lintpasses with the new rule, and itssrc/lint-rules.test.tscase passes. Checked by the commit hooks and the test.pnpm test:e2e e2e/token-route.test.ts e2e/gateway-smoke.test.ts e2e/http-api.test.tspasses. Checked by the green and audit runs.src/auth/AGENTS.mdexists;src/http/AGENTS.md,src/daemon/AGENTS.mdanddocs/internal/ARCHITECTURE.mdnamesrc/authwhere they named the moved files. Checked by the claims review.Assumptions
src/core/config.ts—loadConfigtakes an optionalauthStrategieslist (default: the registry), as it takesmodules.Headersobject — case-insensitive names, no new type.TokenStore.verifyreturns the wholeTokenRecord, since the strategy needs the label.{ principal, name, role: "agent", via: "relay", ambient: false }.Review
Spec review: 2 blocking, 2 fixed, 0 notes. Code review: 3 blocking, 3 fixed, 2 notes. Claims review: 5 blocking, 5 fixed, 0 notes.
Rounds: 2. Tokens: 3.9M.
Assessment: complete
Written by an agent.